﻿using System;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System8Equations;
using System.ComponentModel;

namespace System8ToyMC
{
	public partial class System8Parameters : UserControl
	{
		public System8Parameters()
		{
			// Required to initialize variables
			InitializeComponent();
            LayoutRoot.DataContext = this;

            ///
            /// Get the parameter names set correctly
            /// 

            f_n.Path = "n";
            f_p.Path = "p";
            f_n1.Path = "n1";
            f_p1.Path = "p1";
            f_n2.Path = "n2";
            f_p2.Path = "p2";
            f_n12.Path = "n12";
            f_p12.Path = "p12";

            eff_away.Path = "eff_away";
            eff_LT_n.Path = "eff_LT_n";
            eff_LT_p.Path = "eff_LT_p";
            eff_SMT_n.Path = "eff_SMT_n";
            eff_SMT_p.Path = "eff_SMT_p";
            eff_SMTLT_n.Path = "eff_SMTLT_n";
            eff_SMTLT_p.Path = "eff_SMTLT_p";

            alpha_LT_p_n.Path = "alpha_LT_p_n";
            alpha_SMT_p_n.Path = "alpha_SMT_p_n";
            alpha_SMTLT_n.Path = "alpha_SMTLT_n";
            alpha_SMTLT_p.Path = "alpha_SMTLT_p";

            results.Path = "results";
        }

        /// <summary>
        /// Get/Set the set of equations
        /// </summary>
        [Category("Numbers")]
        [Description("Get/Set the series of 8 equations and their parameters")]
        public System8Equations.S8Equations Equations
        {
            get { return (System8Equations.S8Equations)GetValue(EquationsProperty); }
            set { SetValue(EquationsProperty, value); }
        }

        // Using a DependencyProperty as the backing store for Equations.  This enables animation, styling, binding, etc...
        public static readonly DependencyProperty EquationsProperty =
            DependencyProperty.Register("Equations", typeof(System8Equations.S8Equations), typeof(System8Parameters), new PropertyMetadata(null));

    }
}